package com.xdb.sqlparser.dialect.oracle.ast;

import com.xdb.sqlparser.ast.SQLDataTypeImpl;
import com.xdb.sqlparser.dialect.oracle.visitor.OracleASTVisitor;
import com.xdb.sqlparser.visitor.SQLAstVisitor;

public class OracleDataTypeIntervalYear extends SQLDataTypeImpl implements OracleSQLObject {

	public OracleDataTypeIntervalYear() {
		this.setName("INTERVAL YEAR");
	}

	@Override
	protected void accept0(SQLAstVisitor visitor) {
		this.accept0((OracleASTVisitor) visitor);
	}

	@Override
	public void accept0(OracleASTVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, getArguments());
		}
		visitor.endVisit(this);
	}

}
